package day04;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/15
 **/
public class WhileDemo {
    public static void main(String[] args) {
        int a = 0;
        while (a < 9) {
            System.out.println("1");
            a++;
        }
        System.out.println("-----------------------");

        int num = 1;
        while (num < 10) {
            System.out.println(num + " x 9 = " + num * 9);
            num++;
        }
        /*//执行过程:
                                     num=1
               1*9=9   1<10?  num++  num=2
               2*9=18  2<10?  num++  num=3
               3*9=27  3<10?  num++  num=4
               4*9=36  4<10?  num++  num=5
               ..............




         */



    }
}
